/**
 * 初始化上传窗口
 * @param params 窗口参数对象
 */
function initUpdateFileWin(params) {
    var data = JSON.stringify(params);
    data = encodeURIComponent(data);
    parent.layer.open({
        type: 2,
        title: '<strong>上传文件</strong><small class="ml10"></small>',
        shadeClose: false,
        shade: [0.3, '#000000'],
        maxmin: true, //开启最大化最小化按钮
        btn:["确认上传","取消"],
        area:winArea,
        content: baseloaction +'/admin/initUploadPage?params='+data,
        yes: function(index, layero){
            var iframeName = layero.find("iframe").attr("name");
            var layBtn = layero.find('.layui-layer-btn0')
            layBtn.addClass('btn-disabled').html('<i class="fa fa-circle-o-notch"></i> 上传中...')
            parent.frames[iframeName].uploadFile(index);
        }
    });
}